package com.jv.spring.init;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
@Setter
@Getter
public class Employee {
	private String name = "Messi";
	@Value("10")
	private Integer age;
	@Autowired
	private Dept dept;
	public Employee(){}

	public Employee(String name,Integer age){
		this.name = name;
		this.age  = age;
	}
}
